package com.giraffe.common.jpa.web.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * @Author ldx
 * @Date 2023/02/06 10:36
 **/
@Data
@MappedSuperclass
public class IdEntity implements Serializable {

  /**
   * 主键ID
   */
  @Id
  @Column(columnDefinition = "bigint(20) NOT NULL")
  protected Long id;

}
